package com.example.xw.common.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;


@TableName("users")
public class User implements Serializable {
    @TableId("user_id")
    private Integer id;
    @TableField("user_nickname")
    private String nickname;
    @TableField("user_loginname")
    private String loginname;
    @TableField("user_loginpwd")
    private String loginpwd;
    @TableField("user_photo")
    private String photo;
    @TableField("user_score")
    private Integer score;
    @TableField("user_attionCount")
    private Integer attionCount;
    @TableField("user_state")
    private Integer state;

    @TableField(exist = false)
    private Map<String,Object> map = new HashMap<>();
    public Map<String, Object> getMap() {
        return map;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getLoginpwd() {
        return loginpwd;
    }

    public void setLoginpwd(String loginpwd) {
        this.loginpwd = loginpwd;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getAttionCount() {
        return attionCount;
    }

    public void setAttionCount(Integer attionCount) {
        this.attionCount = attionCount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
